disable debug logging for h2, reqwest, hyper_util libraries + request id in cli logs#401
disable debug logging for h2, reqwest, hyper_util libraries + request id in cli logs#401
Conversation
this can still be enabled by `RUST_LOG=debug,h2=debug`
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughSummary by CodeRabbit
WalkthroughAdds a public helper to read the Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
gschoeni
left a comment
There was a problem hiding this comment.
Good add, I was getting annoyed by this log too 😅
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@crates/lib/src/util/logging.rs`:
- Around line 20-22: The hardcoded filter_module calls (e.g.,
filter_module("h2", LevelFilter::Warn), filter_module("hyper_util", ...),
filter_module("reqwest", ...)) are overriding any RUST_LOG env directives
because they are applied after Builder::from_env / parse_env; fix by applying
these default filter_module calls before calling parse_env/from_env so
environment-specified log levels can override them (i.e., move the filter_module
lines to occur prior to parse_env/from_env on the Builder, keeping
Builder::from_env/parse_env as the final step).
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 0aebef04-a75a-4b03-8280-57cdc4585c35
📒 Files selected for processing (4)
crates/lib/src/api/client.rscrates/lib/src/api/client/entries.rscrates/lib/src/config/auth_config.rscrates/lib/src/util/logging.rs
client side logs are very noisy when run with,
RUST_LOG=debugbecause of logs from h2 library. this PR turns off debug logs from h2.this can still be enabled by
RUST_LOG=debug,h2=debugh2,reqwestandhyper_util.requestIdvisible in the client side